package Atest;

/**
 * @Author wangzhipeng
 * @Date 2020-08-23 1:00 下午
 * @Description
 */
public class Son extends Father{

    public Son() {
        System.out.println("Son");
    }


    public static void demo(){
        System.out.println("son method");
    }

    public static void main(String[] args) {
        Father father = new Father();
        Son son = new Son();
        Father f = (Father)son;
        f.demo();


    }
}
